package com.ghc.action;

import java.util.ArrayList;
import com.ghc.dao.ImgDao;
import com.ghc.pojo.Img;

public class IndexAction {
	
	private ArrayList<Img> picTurnList;
	private ImgDao imgDao;
	
	public String index(){
		picTurnList = imgDao.showPicTurn();
		return "success";
	}

	public ArrayList<Img> getPicTurnList() {
		return picTurnList;
	}

	public void setPicTurnList(ArrayList<Img> picTurnList) {
		this.picTurnList = picTurnList;
	}

	public ImgDao getImgDao() {
		return imgDao;
	}

	public void setImgDao(ImgDao imgDao) {
		this.imgDao = imgDao;
	}

}
